import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';

export class UpdateClassInfoDto {
  @ApiProperty({ example: '班级编码', description: '班级编码' })
  @IsString()
  @IsNotEmpty({ groups: ['create'], message: '班级编码必须填写' })
  class_code: string;

  @ApiProperty({ example: '班级姓名', description: '班级姓名' })
  @IsString()
  @IsNotEmpty({ groups: ['create'], message: '班级姓名必须填写' })
  name: string;
}
